home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / July 96 / Re Hiliting and system hilite < prev    next >
Encoding:
Internet Message Format  |  1996-07-10  |  727 b   |  [TEXT/ttxt]

  1. Subject:     Re: Hiliting and system hilite colour in ODF?
  2. Sent:        7/10/96 5:30 AM
  3. Received:    7/10/96 8:46 AM
  4. From:        Serge Froment, sfroment@odyssee.net
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >How do I get the system's current hilite colour as defined in the Color
  9. >control panel? I can't seem to find any way to do so with ODF.
  10.  
  11. Here is how I do it in my code:
  12.  
  13. FW_CInk CMyView::GetSelectionInk() const
  14. {
  15.         RGBColor platformColor;
  16.         ::LMGetHiliteRGB(&platformColor);
  17.         FW_CColor highlightColor(platformColor);
  18.         return FW_CInk(highlightColor, this->GetBackgroundColor(), FW_kHilite);
  19. }
  20.  
  21. Serge
  22.  
  23.  
  24.